home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / listings / v_08_07 / 8n07057a < prev    next >
Text File  |  1990-06-17  |  564b  |  18 lines

  1.  
  2.         .y.c:
  3.                 yacc -d $(YFLAGS) $*.y
  4.                 cat yacc.hdr > $*.yacc.c
  5.                 grep -v "^#.*line" y.tab.c |\
  6.                   sed -e 's/YYSTYPE/$*_STYPE/'\
  7.                       -e 's/yylex/$*_lex/'\
  8.                       -e 's/yylval/$*_lval/'\
  9.                       -e 's/yyparse/$*_parse/'\
  10.                       >> $*.yacc.c
  11.                 sed -e 's/YYSTYPE/$*_STYPE/'\
  12.                     -e 's/yylval/$*_lval/'\
  13.                     y.tab.h > $*.yacc.h
  14.                 rm y.tab.c y.tab.h
  15.  
  16.         Listing 3
  17.  
  18.